import download.DownloadManager2;

/**
 * @Description 启动页面
 * @Author 冷彭磊
 * @Data 2025/2/26 8:54
 */
public class Main {
    public static void main(String[] args) throws InterruptedException {
        //支持断点续传
        //8D05D41CC25219D2A8C118D20EBDA5FD
        //204 MB
        String url1 = "https://dldir1.qq.com/qqfile/qq/PCQQ9.7.17/QQ9.7.17.29225.exe";

        //8ACE7EA88C266E0222A9F63841DA2A43
        //1.92 GB
        String url2 = "https://dlied4.myapp.com/myapp/1104466820/cos.release-40109/10040714_com.tencent.tmgp.sgame_a2480356_8.2.1.9_F0BvnI.apk";

        int numberOfThreads = 3;
        //下载监听
        DownloadManager2 manager2 = new DownloadManager2();
        manager2.addDownloadTask(url2,"D:\\test\\d.apk",numberOfThreads,"8ACE7EA88C266E0222A9F63841DA2A43");
        manager2.addDownloadTask(url1,"D:\\test\\QQ.exe",numberOfThreads,"8D05D41CC25219D2A8C118D20EBDA5FD");
//        manager2.addDownloadTask(url1,"D:\\test\\AA.exe",numberOfThreads,"8D05D41CC25219D2A8C118D20EBDA5FD");
        manager2.startAll();

    }
}




